package com.webdrop.gui;

import com.google.gwt.user.client.ui.TabPanel;

public class MyFiles extends Page{
	
	TabPanel tabPanel;
	ReadFiles readFiles;
	Header header;
	ViewFilesTab viewFilesTab;
	
	public MyFiles(){
		
		tabPanel = new TabPanel();
		tabPanel.addStyleName("tabPanel");
		
		readFiles = new ReadFiles();
		viewFilesTab = new ViewFilesTab(readFiles);
		header = new Header(viewFilesTab);
	
		tabPanel.add(readFiles,"Gallery");
		tabPanel.add(viewFilesTab,"View files");
		tabPanel.selectTab(0);
		
		container.add(header);
		container.add(tabPanel);
		
	}
	
	protected void onLoad()	{}
		
	
	protected void onUnload(){
		tabPanel.clear();
	}
	
}
